<!DOCTYPE html>
<html xmlns:th="http://www.springframework.org/schema/jdbc" lang="">
<head>
    <meta charset="utf-8">
    <title>员工管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../static/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="../../../static/expand/dtree/font/dtreefont.css">
    <link rel="stylesheet" href="../../../static/expand/dtree/dtree.css">
    <link rel="stylesheet" href="../../../static/expand/eleTree/eleTree/eleTree.css"  media="all">
    <style type="text/css">
        .dtree-select {
            z-index: 9999;
        }
    </style>
</head>
<body>
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
<!--        <div class="layui-col-md2">-->
<!--            <div class="layui-card">-->
<!--                &lt;!&ndash;<div class="layui-card-header"></div>&ndash;&gt;-->
<!--                <div class="layui-card-body">-->
<!--                    <div  id="employeeTree">-->
<!--                        <div  class="eleTree employeeTree" lay-filter="employee_tree_data"></div>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
        <div class="layui-col-md15">
            <form class="layui-form layui-from-pane" action="" style="margin-top:20px"   >

                <div class="layui-form-item">
                    <label class="layui-form-label">搜索对象:</label>
                    <div class="layui-input-inline">
                        <input id="searchEmployee" type="text" name="title"   placeholder="请输入姓名、工号、手机号" autocomplete="off" class="layui-input">
                    </div>

                    <label class="layui-form-label">医院</label>
                    <div class="layui-input-inline">
                        <select   id = "searchHospitalSelect"  lay-filter="searchHospitalSelect">
                            <option value="">请选择</option>
                        </select>
                    </div>

                    <label class="layui-form-label">部门</label>
                    <div class="layui-input-inline">
                        <div>
                            <ul id="searchDeptDtree" class="dtree" data-id="0"></ul>
                        </div>
                    </div>


                    <div style="float:right">
                        <button type="button" id="searchEmployeeBtn" class="layui-btn layui-btn-primary  layui-btn-sm layui-btn-submit " lay-submit="" lay-filter="searchDept">
                            <i class="layui-icon">&#xe615;</i>
                        </button>
                        <button type="reset" id="clearEmployeeBtn" class="layui-btn layui-btn-primary layui-btn-sm">
                            <i class="layui-icon">&#xe669;</i>
                        </button>
                    </div>
                </div>

                <div class="layui-form-item">

<!--                    <div class="layui-inline" >-->
<!--                        <div class="layui-input-block">-->
<!--                            <button type="button" id="searchEmployeeBtn" class="layui-btn layui-btn-primary  layui-btn-sm layui-btn-submit " lay-submit="" lay-filter="searchDept">-->
<!--                                <i class="layui-icon">&#xe615;</i>-->
<!--                            </button>-->
<!--                            <button type="reset" id="clearEmployeeBtn" class="layui-btn layui-btn-primary layui-btn-sm">-->
<!--                                <i class="layui-icon">&#xe669;</i>-->
<!--                            </button>-->
<!--                        </div>-->
<!--                    </div>-->

                </div>
            </form>
            <table class="layui-table" id="employee_table" lay-filter="employee_table"></table>
        </div>
    </div>
</div>


<!--employee_table_right 运用在表格初始化行数据cols中的操作栏 toolbar: -->
<script type="text/html" id="employee_table_right">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail_employee">查看</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit_employee">编辑</a>
    <!--<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="assignment_job">+职位</a>-->
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete_employee">删除</a>
</script>
<!-- employee_table_top 运用在表格初始化属性中的 toolbar: -->
<script type="text/html" id="employee_table_top"  >
    <div class="layui-btn-container">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm"  lay-event="add_employee">
            <i class="layui-icon">&#xe654;</i>
        </button>
<!--        <button   type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="edit_employee_job">-->
<!--            <i class="layui-icon">&#xe642;</i>-->
<!--        </button>-->
        <button   type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="batch_employee_deleted">
            <i class="layui-icon">&#xe640;</i>
        </button>
    </div>
</script>


<script src="../../../static/layui/layui.js" charset="utf-8"></script>
<script src="../../../static/js/hospital/employee.js"></script>
<script src="../../../static/expand/main.js" charset="utf-8"></script>

<script type="text/html" id="statusTemp">
    {{#  if(d.media.status==1){ }}
    <input type="checkbox" name="status" lay-skin="switch" checked   lay-text="开启|关闭"  value= {{ d.media.id}}  lay-filter="status" >
    {{#  } else { }}
    <input type="checkbox" name="status" lay-skin="switch"  lay-text="开启|关闭"  value= {{ d.media.id} lay-filter="status" >
    {{#  } }}
</script>

</body>
</html>
